// pages/video_page/video_page.js
import {createStoreBindings} from "mobx-miniprogram-bindings"
import {store} from "../../store/store"
Page({
  data: {

  },
  navigateToAddPage(){
    
    if(!wx.getStorageSync('token')){
      wx.switchTab({
        url: '/pages/user_page/user_page',
        success:()=>{
          this.updateActivePage(3)
        }
      })
    }
    else{
      wx.navigateTo({
        url: '/pages/video_add_page/video_add_page',
      })
    }
  }
})